package 进阶.缓冲流.字符;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class demo01_bufferedWriter {
    public static void main(String[] args) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter("d:/a.txt",true));

        for (int i = 0; i < 10;i ++){
            bw.write("hello world ");
            bw.newLine();
        }

        bw.close();
    }
}
